package com.zcj.demo.user.domain;

import com.zcj.demo.domain.AbstractAuditingEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User
 *
 * @author 自动生成
 * @date 2020-10-13 16:02:43
 */
@Entity
@Data
@Table(name = "user")
public class UserDO extends AbstractAuditingEntity {

    /**
     * 用户名
     */
    @Column(name = "user_name")
    private String username;

    /**
     * 密码
     */
    @Column(name = "password")
    private String password;

    /**
     * 真实姓名
     */
    @Column(name = "name")
    private String name;

    /**
     * 头像（网址）
     */
    @Column(name = "avatar")
    private String avatar;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 手机号
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 角色权限
     */
    @Column(name = "access")
    private String access;
}
